# # 第一种
# a = list()
# # 第二种
# b = [1,2,3,4,5]
#
# a.append(23)
from itertools import count

# a=[1,2,3,4,5,6,7,8]
# #下标为-1代表是最后以为
# print(-1)
# #切片
# print(a[1:5])
# #设置步数
# print(a[1:5:2])

# a = [1,2,3,4,5,6,7,8,9,10]
# #第一种遍历方式
# for i in a:
#     print(i,end=' ')
#
# print()
#
# #第二种遍历方式
# Len = len(a)
# n=0
# while n < Len:
#     print(a[n],end=' ')
#     n+=1
#
# print()


# a.append(1)
# print(a)
#
# a.insert(1,100)
# print(a)


# #打印结果为True/False
# print(1 in a)
#
# #打印下标
# pos = a.index(100)
# print(pos)

# a = [1,2,3,4,5,6,7,8,9,10]
# print(a)
# a.pop()
# print(a)
# a.remove(9)
# print(a)

# a = [1,2,3,4,5,6,7,8,9,10]
# b=[12,34,56,23,45,33,77]
# #使用+的方式来拼接
# c=a+b
# print(c)
# #使用extend方式
# a.extend(b)
# print(a)
# #使用+=方式来拼接
# a+=b
# print(a)


# a=()
# b=tuple()
#
# a = (1,2,4,5,6,6,5,1)
#
# for i in a:
#     print(i,end=' ')

a = {
    'key':'value'
}

# b = dict()
#
#
# ret = 'id' in a
# print(ret)
#
#新增
# a['key2'] = 'value2'
# #修改
# a['key'] = 'value3'
#
# print(a)
#
# a.pop('key')
# a.pop('key2')
# print(a)

print(a.keys())
print(a.values())
print(a.items())


